package com.yztl.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Order {
    private int id;
    private int order_userid;
    private int order_productid;
    private int order_num;
    @JSONField(format = "yyyy-MM-dd")
    private Date order_creation;
    @JSONField(format = "yyyy-MM-dd")
    private Date order_updatetime;
    private int order_state;



    //新增
    private Product product;
    private Status status;
    public Order() {
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", order_userid=" + order_userid +
                ", order_productid=" + order_productid +
                ", order_num=" + order_num +
                ", order_creation=" + order_creation +
                ", order_updatetime=" + order_updatetime +
                ", order_state=" + order_state +
                ", product=" + product +
                ", status=" + status +
                '}';
    }

    //添加构造
    public Order(int order_userid, int order_productid, int order_num, Date order_creation, Date order_updatetime, int order_state) {
        this.order_userid = order_userid;
        this.order_productid = order_productid;
        this.order_num = order_num;
        this.order_creation = order_creation;
        this.order_updatetime = order_updatetime;
        this.order_state = order_state;
    }


    //修改构造
    public Order(int id, int order_productid, int order_num, Date order_updatetime) {
        this.id = id;
        this.order_productid = order_productid;
        this.order_num = order_num;
        this.order_updatetime = order_updatetime;
    }

    public Order(int id, int order_productid, int order_num, Date order_updatetime, int order_state) {
        this.id = id;
        this.order_productid = order_productid;
        this.order_num = order_num;
        this.order_updatetime = order_updatetime;
        this.order_state = order_state;
    }

    public Order(int id, int order_userid, int order_productid, int order_num, Date order_creation, Date order_updatetime, int order_state, Product product, Status status) {
        this.id = id;
        this.order_userid = order_userid;
        this.order_productid = order_productid;
        this.order_num = order_num;
        this.order_creation = order_creation;
        this.order_updatetime = order_updatetime;
        this.order_state = order_state;
        this.product = product;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrder_userid() {
        return order_userid;
    }

    public void setOrder_userid(int order_userid) {
        this.order_userid = order_userid;
    }

    public int getOrder_productid() {
        return order_productid;
    }

    public void setOrder_productid(int order_productid) {
        this.order_productid = order_productid;
    }

    public int getOrder_num() {
        return order_num;
    }

    public void setOrder_num(int order_num) {
        this.order_num = order_num;
    }

    public Date getOrder_creation() {
        return order_creation;
    }

    public void setOrder_creation(Date order_creation) {
        this.order_creation = order_creation;
    }

    public Date getOrder_updatetime() {
        return order_updatetime;
    }

    public void setOrder_updatetime(Date order_updatetime) {
        this.order_updatetime = order_updatetime;
    }

    public int getOrder_state() {
        return order_state;
    }

    public void setOrder_state(int order_state) {
        this.order_state = order_state;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

}
